package com.weichen.xd.data;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * Created by Dune on 2017/9/11.
 */

public class Aqi implements Parcelable {

    public static final Parcelable.Creator<Aqi> CREATOR = new Parcelable.Creator<Aqi>() {
        @Override
        public Aqi createFromParcel(Parcel source) {
            return new Aqi(source);
        }

        @Override
        public Aqi[] newArray(int size) {
            return new Aqi[size];
        }
    };
    @SerializedName("city")
    private City city;

    public Aqi() {
    }

    protected Aqi(Parcel in) {
        this.city = in.readParcelable(City.class.getClassLoader());
    }

    public City getCity() {
        return city;
    }

    public void setCity(City city) {
        this.city = city;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(this.city, flags);
    }
}
